package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ICarBrandService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 汽车品牌表 前端控制器
 * </p>
 *
 * @author mp
 * @since 2024-12-18
 */
@RestController
@RequestMapping("/car")
public class CarBrandController {

    @Resource
    private ICarBrandService carBrandService;

    @GetMapping("/brandList")
    public ResponseResult brandList() {
        return ResponseResult.okResult(carBrandService.list());
    }

}
